#ifndef DRV_BTN_H
#define DRV_BTN_H

#include "main.h"

typedef enum {
    BTN_1,
    BTN_A,
    BTN_B,   
    BTN_MAX
} drv_btn_type_t;

typedef enum {
    BTN_STATE_LOW,
    BTN_STATE_HIGH,
} drv_btn_state_t;

typedef void (*drv_btn_cb_t) (drv_btn_type_t, unsigned char );

void drv_btn_init(void);
void drv_btn_irq_handler(drv_btn_type_t type);
unsigned int drv_btn_read_level(drv_btn_type_t type);
void drv_btn_cb_register(drv_btn_cb_t cb);

#endif